gdkdevice: Add GdkDevice::tool-changed signal
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 6 Jan 2015 13:44:15 +0000 (14:44 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 6 Apr 2016 13:43:29 +0000 (15:43 +0200)
commitd5f141a9b7e85272b6042d2be6a6bcd09a825bd3
tree9ae1afe0b2b2d7869cfcfc4c72cce3160cc7018d
parent4ba95b09ba1b42aba68335d4a2df021cd58a5a32
gdkdevice: Add GdkDevice::tool-changed signal

On the devices and backends that support it, this signal will be emitted
on slave/floating devices whenever the tool they are interacting with
changes. These notifications may also work as a sort of proximity events,
as the tool will be unset when the pen moves too far.

For backends, gdk_device_update_tool() has been included, all that should
be done on their side is just calling this whenever any tool might have
changed.
gdk/gdkdevice.c
gdk/gdkdeviceprivate.h